<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单信息</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="/Public/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/Public/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="/Public/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="/Public/Theme1/static/plupload/upfiless.css" rel="stylesheet" type="text/css" />
    <link href="/Public/Theme1/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
    <link href="/Public/Theme1/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>订单信息 <a style="margin-left: 15px; color:#06cbc4" href="/Home/User/order_list">返回列表</a></h5>
                        <div class="ibox-tools">
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form method="post" action="" class="form-horizontal" id="form-admin-add" enctype="multipart/form-data" >
                           
                            <div class="form-group">
                                <label class="col-sm-1 control-label">会员编号</label>
                                <div class="col-sm-3">
									<?php echo ($order["loginname"]); ?>
									<input type="hidden" value="<?php echo ($order["id"]); ?>" name="order_id" id="order_id"  />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">订单编号</label>
                                <div class="col-sm-3">
                                    <?php echo ($order["order_sn"]); ?>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">收货地址</label>
                                <div class="col-sm-3">
                                    <?php echo ($order["address"]); ?>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">购买时间</label>
                                <div class="col-sm-3">
                                    <?php echo (date('Y-m-d H:i:s',$order["add_time"])); ?>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">产品名称</label>
                                <div class="col-sm-3">
                                    <?php echo ($order["goods_name"]); ?>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">订单总额</label>
                                <div class="col-sm-3">
                                    <?php echo ($order["order_amount"]); ?> +  <?php echo ($order["order_gwjf"]); ?> 积分
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">订单数量</label>
                                <div class="col-sm-3">
                                    <?php echo ($order["goods_number"]); ?>
                                </div>
                            </div>

                            <div class="form-group">
                                 <label class="col-sm-1 control-label">订单姓名</label>
                                <div class="col-sm-3">
                                   <?php echo ($order["truename"]); ?>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">订单状态</label>
                                <div class="col-sm-3">
                                    <span style="color: #1AB394"><?php echo ($order_status); ?></span>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label">手机号码</label>
                                <div class="col-sm-3">
                                    <?php echo ($order["tel"]); ?>
                                </div>
                            </div>
                            <?php if(!empty($order["kd_name"])): ?><div class="form-group">
                                <label class="col-sm-1 control-label">发货快递:</label>
                                <div class="col-sm-3">
                                    <input type="text" name="kd_name" id="kd_name" placeholder="   如:顺丰快递"
                                    <?php if(!empty($order["kd_name"])): ?>value=" <?php echo ($order["kd_name"]); ?>" readonly='readonly'<?php endif; ?>

                                    />
                                </div>
                            </div><?php endif; ?>
                            <?php if(!empty($order["kd_order"])): ?><div class="form-group">
                                <label class="col-sm-1 control-label">快递单号:</label>
                                <div class="col-sm-3">
                                    <input type="text" name="kd_order" id="kd_order" placeholder="   请输入快递单号"
                                    <?php if(!empty($order["kd_name"])): ?>value=" <?php echo ($order["kd_order"]); ?>" readonly='readonly'<?php endif; ?>
                                    />
                                </div>
                            </div><?php endif; ?>
                            <div class="hr-line-dashed"></div>
                            <?php if($order_status_num == 521): ?><div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">
                                        确认收货
                                    </button>
                                </div>
                            </div><?php endif; ?>
                            <input type="hidden" name="update_order" value="update_order"/>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="/Public/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Public/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/Public/Theme1/js/content.min.js?v=1.0.0"></script>
    <script src="/Public/Theme1/js/plugins/iCheck/icheck.min.js"></script>

<script type="text/javascript" src="/Public/Theme1/check/js/jquery.validate.min.js"></script> 

<script type="text/javascript" src="/Public/Theme1/check/js/messages_zh.min.js"></script> 

<script type="text/javascript" src="/Public/Theme1/check/js/validate-methods.js"></script> 
<script type="text/javascript" src="/Public/Theme1/lib/webuploader/0.1.5/webuploader.min.js"></script> 

    <script>
        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
    </script>
    

    <script type="text/javascript">
	
	function shoujihaoma(thisvalue){
	
			var reg = /^\d{9,}$/;

		 if(!reg.test(thisvalue)){
			$("#txt_tel").addClass("error");
			$("#txt_tel").after('<label id="txt_tel-error" class="error" for="txt_tel" style="display: inline-block;">格式不正确</label>');
			
			return false;
		 }
		 else{
			$("#txt_tel-error").remove();
			$("#txt_tel").removeClass("error");
			return true;
		 }
		 
	}
	

	

</script> 
	
</body>

</html>